/**
 * Created by Mars on 17/4/12.
 */

var findDataByid = function (id) {
    for (var i=0 ;i<allData_g.length;i++){
        // console.log(allData_g[i]);
        if(parseInt(allData_g[i].material_id) == parseInt(id)){
            return allData_g[i];
        }
    }
}


var getVideoWidth = function (time) {
    return time*12;
}

// setInterval(function() {
//    console.log(document.body.scrollLeft );
// }, 1000)